package grape.attend.rest.overtime.mapper;

import grape.attend.rest.overtime.form.OvertimeLegalListForm;
import grape.attend.service.overtime.po.OvertimeLegal;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.attend.rest.overtime.form.OvertimeLegalCreateForm;
import grape.attend.rest.overtime.form.OvertimeLegalUpdateForm;
import grape.attend.rest.overtime.form.OvertimeLegalListPageForm;
import grape.attend.rest.overtime.vo.OvertimeLegalVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 加班法定节假日设置表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-05-09
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface OvertimeLegalWebMapper extends WebMapper<OvertimeLegalVo, OvertimeLegal> {

    OvertimeLegal formToPo(OvertimeLegalCreateForm f);
    OvertimeLegal formToPo(OvertimeLegalUpdateForm f);
    OvertimeLegal formToPo(OvertimeLegalListPageForm f);
    OvertimeLegal formToPo(OvertimeLegalListForm f);
}
